
//
//  JSTConfig.m
//  JSTMobClick
//
//  Created by 01 on 16/8/29.
//  Copyright © 2016年 Czj. All rights reserved.
//

#import "JSTConfig.h"

@implementation JSTConfig
@end

@implementation JSTDeviceInfo

+ (instancetype)modelWith:(NSString *)deviceUUID macAddress:(NSString *)macAddress
{
    JSTDeviceInfo *model = [[JSTDeviceInfo alloc] init];
    model.deviceUUID = deviceUUID;
    model.macAddress = macAddress;
    return model;
}

@end

@implementation JSTCustomOnClick

+ (instancetype)modelWith:(NSString *)clickName num:(NSString *)clickNum time:(NSString *)clickTime
{
    JSTCustomOnClick *model = [[JSTCustomOnClick alloc] init];
    model.clickName = clickName;
    model.clickNum = clickNum;
    model.clicktime = clickTime;
    return model;
}

@end

@implementation JSTCustomPage

+ (instancetype)modelWith:(NSString *)pageName num:(NSString *)pageNum time:(NSString *)pageTime
{
    JSTCustomPage *model = [[JSTCustomPage alloc] init];
    model.pageName = pageName;
    model.pageNum = pageNum;
    model.pageTime = pageTime;
    return  model;
}

@end

@implementation JSTCacheOnClickOrPv

+ (instancetype)modelWith:(NSString *)cacheTime cacheTyep:(NSString *)cacheType cacheId:(NSString *)cacheId
{
    JSTCacheOnClickOrPv *model = [[JSTCacheOnClickOrPv alloc] init];
    model.cacheTime = cacheTime;
    model.cacheType = cacheType;
    model.cacheId = cacheId;
    return model;
}

@end

@implementation JSTAdvertClickData

+ (instancetype) modelWith:(NSString *)clickType url:(NSString *)advertUrl id:(NSString *)advertId index:(NSString *)advertIndex
{
    JSTAdvertClickData *model = [[JSTAdvertClickData alloc] init];
    model.clickType = clickType;
    model.advertId = advertId;
    model.advertUrl = advertUrl;
    model.advertIndex = advertIndex;
    return model;
}

@end

@implementation JSTAdvertData

+ (instancetype)modelWith:(NSString *)advertIndex advertId:(NSString *)advertId dataDict:(NSString *)dataDict currentTime:(NSString *)currentTime
{
    JSTAdvertData *model = [[JSTAdvertData alloc] init];
    model.advertIndex = advertIndex;
    model.advertId = advertId;
    model.dataDict = dataDict;
    model.currentTime = currentTime;
    return model;
}

@end

@implementation JSTTableScreenData

+ (instancetype)modelWith:(NSString *)currentAdvert getImgUrl:(NSString *)imgUrl
{
    JSTTableScreenData *model = [[JSTTableScreenData alloc] init];
    model.currentAdvert = currentAdvert;
    model.imgUrl = imgUrl;
    return model;
}

@end

@implementation JSTStartViewData

+ (instancetype)modelWith:(NSString *)currentAdvert adImgUrl:(NSString *)adImgUrl disseminateImgUrl:(NSString *)disseminateImgUrl
{
    JSTStartViewData *model = [[JSTStartViewData alloc] init];
    model.currentAdvert = currentAdvert;
    model.adImgUrl = adImgUrl;
    model.disseminateImgUrl = disseminateImgUrl;
    return model;
}
@end


@implementation JSTNotificationData

+ (instancetype)modelWith:(NSString *)push_time title:(NSString *)title content:(NSString *)content link:(NSString *)link
{
    JSTNotificationData *model = [[JSTNotificationData alloc] init];
    model.push_time = push_time;
    model.title = title;
    model.content = content;
    model.link = link;
    return model;
}

@end

@implementation JSTAdvertArrivalRateData

+ (instancetype)modelWith:(NSString *)advertArrivalRateStr num:(NSString *)interceptedNum
{
    JSTAdvertArrivalRateData *model = [[JSTAdvertArrivalRateData alloc] init];
    model.advertArrivalRateStr = advertArrivalRateStr;
    model.interceptedNum = interceptedNum;
    return model;
}

@end

@implementation JSTPushData

+ (instancetype)modelWith:(NSString *)pushId title:(NSString *)title content:(NSString *)content link:(NSString *)link pushTime:(NSString *)pushTime
{
    JSTPushData *model = [[JSTPushData alloc] init];
    model.pushId = pushId;
    model.title = title;
    model.content = content;
    model.link = link;
    model.pushTime = pushTime;
    
    return model;
}

@end












